package com.boang.lambda;

/*
  @author: 13813
  @date: 2024/11/29 16:37
*/
public class LambdaDemo {
    public static void main(String[] args) {
        /*
          1创建类Abc实现Runnable接口，重写run方法
          2Abc abc = new Abc();
          3new Thread(abc).start();
         */
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("abc");
            }
        }).start();

        new Thread(() -> {
            System.out.println("abc");
        }).start();

        new Thread(() -> System.out.println("abc")).start();

    }
}
